Optimal. Leaf size=44 \[ -\frac {A (a+b x)^6}{7 a x^7}+\frac {(A b-7 a B) (a+b x)^6}{42 a^2 x^6} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {79, 37}
\begin {gather*} \frac {(a+b x)^6 (A b-7 a B)}{42 a^2 x^6}-\frac {A (a+b x)^6}{7 a x^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 79
Rubi steps
\begin {align*} \int \frac {(a+b x)^5 (A+B x)}{x^8} \, dx &=-\frac {A (a+b x)^6}{7 a x^7}+\frac {(-A b+7 a B) \int \frac {(a+b x)^5}{x^7} \, dx}{7 a}\\ &=-\frac {A (a+b x)^6}{7 a x^7}+\frac {(A b-7 a B) (a+b x)^6}{42 a^2 x^6}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(104\) vs. \(2(44)=88\).
time = 0.02, size = 104, normalized size = 2.36 \begin {gather*} -\frac {21 b^5 x^5 (A+2 B x)+35 a b^4 x^4 (2 A+3 B x)+35 a^2 b^3 x^3 (3 A+4 B x)+21 a^3 b^2 x^2 (4 A+5 B x)+7 a^4 b x (5 A+6 B x)+a^5 (6 A+7 B x)}{42 x^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(103\) vs.
\(2(40)=80\).
time = 0.07, size = 104, normalized size = 2.36
method | result | size |
default | \(-\frac {b^{5} B}{x}-\frac {a^{3} b \left (2 A b +B a \right )}{x^{5}}-\frac {5 a^{2} b^{2} \left (A b +B a \right )}{2 x^{4}}-\frac {a^{4} \left (5 A b +B a \right )}{6 x^{6}}-\frac {b^{4} \left (A b +5 B a \right )}{2 x^{2}}-\frac {5 a \,b^{3} \left (A b +2 B a \right )}{3 x^{3}}-\frac {a^{5} A}{7 x^{7}}\) | \(104\) |
norman | \(\frac {-b^{5} B \,x^{6}+\left (-\frac {1}{2} b^{5} A -\frac {5}{2} a \,b^{4} B \right ) x^{5}+\left (-\frac {5}{3} a \,b^{4} A -\frac {10}{3} a^{2} b^{3} B \right ) x^{4}+\left (-\frac {5}{2} a^{2} b^{3} A -\frac {5}{2} a^{3} b^{2} B \right ) x^{3}+\left (-2 a^{3} b^{2} A -a^{4} b B \right ) x^{2}+\left (-\frac {5}{6} a^{4} b A -\frac {1}{6} a^{5} B \right ) x -\frac {a^{5} A}{7}}{x^{7}}\) | \(120\) |
risch | \(\frac {-b^{5} B \,x^{6}+\left (-\frac {1}{2} b^{5} A -\frac {5}{2} a \,b^{4} B \right ) x^{5}+\left (-\frac {5}{3} a \,b^{4} A -\frac {10}{3} a^{2} b^{3} B \right ) x^{4}+\left (-\frac {5}{2} a^{2} b^{3} A -\frac {5}{2} a^{3} b^{2} B \right ) x^{3}+\left (-2 a^{3} b^{2} A -a^{4} b B \right ) x^{2}+\left (-\frac {5}{6} a^{4} b A -\frac {1}{6} a^{5} B \right ) x -\frac {a^{5} A}{7}}{x^{7}}\) | \(120\) |
gosper | \(-\frac {42 b^{5} B \,x^{6}+21 A \,b^{5} x^{5}+105 B a \,b^{4} x^{5}+70 a A \,b^{4} x^{4}+140 B \,a^{2} b^{3} x^{4}+105 a^{2} A \,b^{3} x^{3}+105 B \,a^{3} b^{2} x^{3}+84 a^{3} A \,b^{2} x^{2}+42 B \,a^{4} b \,x^{2}+35 a^{4} A b x +7 a^{5} B x +6 a^{5} A}{42 x^{7}}\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 119 vs.
\(2 (41) = 82\).
time = 0.30, size = 119, normalized size = 2.70 \begin {gather*} -\frac {42 \, B b^{5} x^{6} + 6 \, A a^{5} + 21 \, {\left (5 \, B a b^{4} + A b^{5}\right )} x^{5} + 70 \, {\left (2 \, B a^{2} b^{3} + A a b^{4}\right )} x^{4} + 105 \, {\left (B a^{3} b^{2} + A a^{2} b^{3}\right )} x^{3} + 42 \, {\left (B a^{4} b + 2 \, A a^{3} b^{2}\right )} x^{2} + 7 \, {\left (B a^{5} + 5 \, A a^{4} b\right )} x}{42 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 119 vs.
\(2 (41) = 82\).
time = 0.87, size = 119, normalized size = 2.70 \begin {gather*} -\frac {42 \, B b^{5} x^{6} + 6 \, A a^{5} + 21 \, {\left (5 \, B a b^{4} + A b^{5}\right )} x^{5} + 70 \, {\left (2 \, B a^{2} b^{3} + A a b^{4}\right )} x^{4} + 105 \, {\left (B a^{3} b^{2} + A a^{2} b^{3}\right )} x^{3} + 42 \, {\left (B a^{4} b + 2 \, A a^{3} b^{2}\right )} x^{2} + 7 \, {\left (B a^{5} + 5 \, A a^{4} b\right )} x}{42 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 133 vs.
\(2 (37) = 74\).
time = 2.18, size = 133, normalized size = 3.02 \begin {gather*} \frac {- 6 A a^{5} - 42 B b^{5} x^{6} + x^{5} \left (- 21 A b^{5} - 105 B a b^{4}\right ) + x^{4} \left (- 70 A a b^{4} - 140 B a^{2} b^{3}\right ) + x^{3} \left (- 105 A a^{2} b^{3} - 105 B a^{3} b^{2}\right ) + x^{2} \left (- 84 A a^{3} b^{2} - 42 B a^{4} b\right ) + x \left (- 35 A a^{4} b - 7 B a^{5}\right )}{42 x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 123 vs.
\(2 (41) = 82\).
time = 0.70, size = 123, normalized size = 2.80 \begin {gather*} -\frac {42 \, B b^{5} x^{6} + 105 \, B a b^{4} x^{5} + 21 \, A b^{5} x^{5} + 140 \, B a^{2} b^{3} x^{4} + 70 \, A a b^{4} x^{4} + 105 \, B a^{3} b^{2} x^{3} + 105 \, A a^{2} b^{3} x^{3} + 42 \, B a^{4} b x^{2} + 84 \, A a^{3} b^{2} x^{2} + 7 \, B a^{5} x + 35 \, A a^{4} b x + 6 \, A a^{5}}{42 \, x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 118, normalized size = 2.68 \begin {gather*} -\frac {x\,\left (\frac {B\,a^5}{6}+\frac {5\,A\,b\,a^4}{6}\right )+\frac {A\,a^5}{7}+x^2\,\left (B\,a^4\,b+2\,A\,a^3\,b^2\right )+x^4\,\left (\frac {10\,B\,a^2\,b^3}{3}+\frac {5\,A\,a\,b^4}{3}\right )+x^5\,\left (\frac {A\,b^5}{2}+\frac {5\,B\,a\,b^4}{2}\right )+x^3\,\left (\frac {5\,B\,a^3\,b^2}{2}+\frac {5\,A\,a^2\,b^3}{2}\right )+B\,b^5\,x^6}{x^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________